﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Prism.UnityExtensions.Regions;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Unity;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FM.Test
{

    [TestClass]
    public class 全局test
    {


        [TestMethod]
        public void 人事部()
        {
            Assert.AreNotEqual(null, FM.小冰.人事部);
        }
        [TestMethod]
        public void 新闻部()
        {
            Assert.AreNotEqual(null, FM.小冰.新闻部);
        }

        [TestMethod]
        public void 检查条件()
        {
            bool t = true;
            FM.小冰.检查(() => true, "");
            Assert.IsTrue(t);
        }


        public 全局test()
        {
            new 启动器().Run();
        }
        public class 启动器 : UnityBootstrapper
        {
            protected override DependencyObject CreateShell()
            {
                return new DependencyObject();
            }
        }

    }
}
